package com.itheima.idea;

public class Demo2Array {
    public static void main(String[] args) {
        int[] arr = new int[4];
        arr[0] = 1;
        arr[1] = 2;
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        int[] arr2 = arr;
        arr2[1] = 23;
        System.out.println(arr2[0]);
        System.out.println(arr2[1]);
    }
}
